<template>
    <div id="header_top" v-cloak>
        <div class='fixed_top'>
            <div class='liuhai'></div>
            <van-nav-bar @click-left='goback' :title="title">
                <template #left>
                    <van-icon :name="require('@/assets/images/leftback_black.png')"></van-icon>
                </template>
                <template #right>
                    <div v-if="right_text">
                        <span @click="goresume">{{right_text}}</span>
                    </div>
                    <div v-if="right_text1">
                        <span @click="btnMethod">{{right_text1}}</span>
                    </div>
                </template>
            </van-nav-bar>
        </div>
    </div>
</template>
<script>
    export default {
        name: 'header_top',
        props: {
            title: {
                type: String
            },
            right_text: {
                type: String
            },
            right_text1: {
                type: String
            },
            isempty: {
                type: Boolean
            }
        },
        methods: {
            goback() {
                this.$parent.goback();
            },
            // 我的简历
            goresume() {
                this.$parent.gomy();
            },
            btnMethod(){
                this.$parent.rightMethod();
            }
        }
    }
</script>

<style src="@/assets/css/header.css">
</style>
<style scoped>
.fixed_top {
    background-color: white;
}
</style>